<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${data.oldClassName}">

    <resultMap id="BaseResultMap" type="${data.entityClassName}">
        <#list data.fields as field>
             <#if field.selected>
            <result column="${field.description}" property="${field.name}" />
            </#if>
        </#list>
    </resultMap>

    <sql id="base_column_list">
        <#list data.fields as field>
            <#if field.selected>
            ${field.description}<#if field_has_next>,</#if>
            </#if>
        </#list>
    </sql>

</mapper>
